package com.vayne.api;

import org.springframework.beans.factory.InitializingBean;

import javax.annotation.PostConstruct;

/**
 * @author xuerui.zhang
 * @since 2020/4/6 下午10:25
 */
public class DefaultPersonFactory implements PersonFactory, InitializingBean {

    // PostConstruct 是 Java 原生注解
    @PostConstruct
    public void initPostConstruct() {
        System.out.println("PostConstruct init");
    }

    public void initPersonFactory() {
        System.out.println("InitMethod init");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("afterPropertiesSet init");
    }
}
